package com.demo.provider.service;

import com.cloud.api.model.Users;
import com.demo.provider.dao.UsersMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class UserService {
    @Autowired
    private UsersMapper usersMapper;

    public int insert(Users record){
      return   usersMapper.insert(record);
    }

    public int insertSelective(Users record){
        return usersMapper.insertSelective(record);
    }

    public List<Users> getAll() {
        return usersMapper.getAll();
    }
}
